<template>
  <div style="width: 100%;height: 1080px">
    <iframe
      :srcDoc="url"
      frameborder="0"
      width="100%"
      height="100%"
      sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
    ></iframe>
  </div>
</template>
<script>
import {proxy} from '@/api/link/link'
// const url = "www.baidu.com"
export default {
  data() {
    return {
      url: '',
    };
  },
  async mounted() {
    let res;
    try {
      res = await proxy(
        {
          url: ''
        }
      );

      this.url = res;
    } catch (error) {
      console.log(error);
    }

  }
};
</script>
